#! /bin/bash

for NAME in $*
  do
  echo $NAME
    if [ -f $NAME ]; then
      echo $NAME is a file
    elif [ -d $NAME ]; then
      echo $NAME is a DIR
    else
      echo NONE
    fi
  done